package com.guigu.chenjiajun.controller;

import com.guigu.chenjiajun.service.DispatchOrderService;
import com.guigu.common.pojo.MManufacture;
import com.guigu.common.vo.SearchVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/DispatchOrderQuery")
public class DispatchOrderQueryController {

    @Resource
    private DispatchOrderService dispatchOrderService;

    @RequestMapping("/QueryDispatchOrder")
    @ResponseBody
    public SearchVo<MManufacture> QueryDispatchOrder(@RequestBody SearchVo searchVo){
        return this.dispatchOrderService.QueryDispatchOrder(searchVo);
    }
}
